<?php 
/* SVN FILE: $Id$ */
/* User Test cases generated on: 2008-12-21 03:12:19 : 1229831959*/
App::import('Model', 'User');

class UserTestCase extends CakeTestCase {
	var $User = null;
	var $fixtures = array('app.user', 'app.secret_question', 'app.role');

	function startTest() {
		$this->User =& ClassRegistry::init('User');
	}

	function testUserInstance() {
		$this->assertTrue(is_a($this->User, 'User'));
	}

	function testUserFind() {
		$this->User->recursive = -1;
		$results = $this->User->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('User' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'username'  => 'Lorem ipsum do',
			'password'  => 'Lorem ipsum dolor sit amet',
			'first_name'  => 'Lorem ipsum dolor sit amet',
			'last_name'  => 'Lorem ipsum dolor sit amet',
			'email'  => 'Lorem ipsum dolor sit amet',
			'secret_question_id'  => 'Lorem ipsum dolor sit amet',
			'secret_question_answer'  => 'Lorem ipsum dolor sit amet',
			'primary_phone'  => 'Lorem ipsum dolor sit amet',
			'secondary_phone'  => 'Lorem ipsum dolor sit amet',
			'street_address_1'  => 'Lorem ipsum dolor sit amet',
			'street_address_2'  => 'Lorem ipsum dolor sit amet',
			'city'  => 'Lorem ipsum dolor sit amet',
			'province'  => 'Lorem ipsum dolor sit amet',
			'postal_code'  => 'Lorem',
			'country'  => 'Lorem ipsum dolor sit amet',
			'role_id'  => 'Lorem ipsum dolor sit amet',
			'active'  => 1,
			'created'  => '2008-12-21 03:59:18',
			'modified'  => '2008-12-21 03:59:18'
			));
		$this->assertEqual($results, $expected);
	}
}
?>